From: Glenn Morris Date: Tue, 18 Apr 2017 00:09:27 +0000 (-0400) Subject: ispell.el: use user-error rather than debug-ignored-errors X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~21^2~1546^2~607 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d0397f4a5764d3be93be3e3d35bccc1bf27522cf;p=emacs.git ispell.el: use user-error rather than debug-ignored-errors * lisp/textmodes/ispell.el (ispell-get-word): Use user-error. (debug-ignored-errors): No longer modify. --- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index db733fe661b..773023a34a6 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -2014,7 +2014,7 @@ which is in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'." (if ispell-check-only ;; return dummy word when just flagging misspellings (list "" (point) (point)) - (error "No word found to check!")) + (user-error "No word found to check!")) (setq start (copy-marker (match-beginning 0)) end (point-marker) word (buffer-substring-no-properties start end)) @@ -4138,9 +4138,6 @@ Both should not be used to define a buffer-local dictionary." (insert comment-end))))) (insert (concat " " word)))))))) -;;FIXME: Use `user-error' instead! -(add-to-list 'debug-ignored-errors "^No word found to check!$") - (provide 'ispell)